﻿using System.Reflection;

namespace Framework.Metadata
{
    public class EntityMetadataFactory : PropertyMetadataFactory<EntityMetadata>
    {
        public override bool CanHandleProperty(PropertyInfo propertyInfo)
        {
            return propertyInfo.PropertyType.Namespace != null
                   && !propertyInfo.PropertyType.Namespace.StartsWith("System");
        }
    }
}